package com.situ.web.service.impl;

import com.situ.web.dao.IBanjiDao;
import com.situ.web.dao.impl.BanjiDaoImpl;
import com.situ.web.pojo.Banji;
import com.situ.web.pojo.vo.BanjiCountVO;
import com.situ.web.service.IBanjiService;
import com.situ.web.util.JSONResult;

import java.util.List;

public class BanjiServiceImpl implements IBanjiService {
    private IBanjiDao banjiDao = new BanjiDaoImpl();


    @Override
    public JSONResult selectBanjiCount() {
        List<BanjiCountVO> list = banjiDao.selectBanjiCount();
        return JSONResult.ok("", list);
    }

    @Override
    public List<Banji> selectAll() {
        return banjiDao.selectAll();
    }
}
